# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.4.1)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon")

find_library( # Sets the name of the path variable.
              log-lib
              log )

file(GLOB_RECURSE cpp_sources *.c *.cpp *.cc)

# yuvOsd
add_library( # Sets the name of the library.
             YuvOsdUtils

             # Sets the library as a shared library.
             SHARED

             # Provides a relative path to your source file(s).
             ${cpp_sources} )


target_link_libraries(YuvOsdUtils
                       ${log-lib}

                       )

include_directories(
        ${CMAKE_CURRENT_SOURCE_DIR}/libyuv/include
)

